﻿<local:BaseLab x:Class="Rxx.Labs.Reactive.UI.ViewModelLab"
							 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
							 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
							 xmlns:local="clr-namespace:Rxx.Labs"
							 xmlns:reactive="clr-namespace:Rxx.Labs.Reactive.UI"
							 xmlns:rxx="clr-namespace:System.Windows.Reactive;assembly=Rxx"
							 rxx:View.Model="reactive:LabViewModel">

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition />
		</Grid.RowDefinitions>

		<Grid.ColumnDefinitions>
			<ColumnDefinition />
			<ColumnDefinition Width="Auto" />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>

		<TextBox Grid.Row="0" Grid.Column="1" Margin="5" Width="150" VerticalAlignment="Center"
						 Text="{Binding Words, Mode=TwoWay}" />

		<Button Grid.Row="0" Grid.Column="2" Margin="5" Padding="5" Content="Submit" HorizontalAlignment="Left"
						Command="{Binding Submit}" />

		<TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Margin="5" FontSize="15" FontWeight="Bold"
							 HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap"
							 Text="{Binding WordsEnteredAndCounter}" />

	</Grid>

</local:BaseLab>